﻿package mortal.game.view.worship
{
    import Message.Game.*;
    import mortal.game.events.*;
    import mortal.game.mvc.*;
    import mortal.mvc.core.*;

    public class WorshipProxy extends Proxy
    {

        public function WorshipProxy()
        {
            return;
        }// end function

        public function requestWorshipInfo() : void
        {
            rmi.iGuild.getAdoreInfo_async(new AMI_IGuild_getAdoreInfo());
            return;
        }// end function

        public function worshipPlay(param1:int) : void
        {
            rmi.iGuild.adoreKing_async(new AMI_IGuild_adoreKing(this.onWorshipSuccess, null, param1));
            return;
        }// end function

        private function onWorshipSuccess(param1:AMI_IGuild_adoreKing) : void
        {
            Dispatcher.dispatchEvent(new DataEvent(EventName.WorshipPlaySuccess, param1.userObject));
            return;
        }// end function

    }
}
